package com.test.hanlp.participle.repository;

import com.test.hanlp.participle.po.CustomDictionaryPo;
import com.test.hanlp.participle.po.CustomTermPo;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Package: com.test.hanlp.participle.repository
 * @ClassName ICustomDictionaryRepository
 * @Description: 词典存储
 * @Author: ky.zhang
 * @Date 2024/7/16 18:41
 * @Version v1.0
 **/
public interface ICustomDictionaryRepository extends JpaRepository<CustomDictionaryPo, String> {

  Optional<CustomDictionaryPo> findByWordAndDeletedFalse(String word);

  List<CustomDictionaryPo> findAllByDeletedFalse();
}
